﻿// Copyright richyp 2009
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Richyp.Bodger.UI {
    public partial class SaveTemplateForm : Form {
        public SaveTemplateForm() {
            InitializeComponent();
        }

        private ListEntry entry = null;
        public ListEntry Entry {
            get {
                return this.entry;
            }
            set {
                this.entry = value;
            }
        }

        public void Populate(ListEntry entry) {
            this.entry = entry;
            this.textBox1.Text = entry.BaseEntry.Name;
        }

        public string TemplateName {
            get {
                return this.textBox1.Text;
            }
        }
    }
}
